<template>
  <div>
    <h1>One:{{ count }}</h1>
    <button @click="emits('update:count', count + 1)">addCOunt</button>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "One",
});
</script>

<script setup lang="ts">
defineProps<{
  count: number;
}>();
const emits = defineEmits<{
  (event: "update:count", value: number): void;
}>();
</script>

<style  scoped >
</style>